package edu.hit.pact.pgse.communication.message;

import java.util.*;
import java.net.*;
import java.io.*;

public class CrawlerDirReplyMessage implements Message{
	int type;
	String urlHost;
	InetSocketAddress addr;
	public CrawlerDirReplyMessage(int type, String urlHost,
			InetSocketAddress addr) {
		super();
		this.type = type;
		this.urlHost = urlHost;
		this.addr = addr;
	}
	public CrawlerDirReplyMessage(String urlHost, InetSocketAddress addr) {
		super();
		this.type = Types.CRAWEL_DIR_REPLY;
		this.urlHost = urlHost;
		this.addr = addr;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getUrlHost() {
		return urlHost;
	}
	public void setUrlHost(String urlHost) {
		this.urlHost = urlHost;
	}
	public InetSocketAddress getAddr() {
		return addr;
	}
	public void setAddr(InetSocketAddress addr) {
		this.addr = addr;
	}
	
	
	
}
